package xin.alum.aim.model;

import lombok.Data;

import java.io.Serializable;

/**
 * @auther Alum(alum @ live.cn)
 * @date 2021/8/19 11:06
 */
@Data
public class Pusher<T extends Transportable> implements Serializable {
    /**
     * 接受者
     */
    private String recipient = "";

    /**
     * 接受数据
     */
    private T data;

    public Pusher() {
    }

    public Pusher(String recipient, T data) {
        this.recipient = recipient;
        this.data = data;
    }
}
